package com.example.mall.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 * 防作弊配置表
 * </p>
 *
 * @author whale
 * @since 2025-05-16
 */
@TableName("tb_anti_cheat_config")
public class AntiCheatConfig extends Model<AntiCheatConfig> {

    private static final long serialVersionUID = 1L;

    /**
     * 配置唯一标识
     */
    @TableId("config_id")
    private Long configId;
    /**
     * 配置名称
     */
    @TableField("config_name")
    private String configName;
    /**
     * 配置值（如下单次数限制）
     */
    @TableField("config_value")
    private String configValue;
    /**
     * 配置描述
     */
    private String description;
    /**
     * 是否启用（0：禁用，1：启用）
     */
    @TableField("is_active")
    private Integer isActive;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public Long getConfigId() {
        return configId;
    }

    public void setConfigId(Long configId) {
        this.configId = configId;
    }

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    public String getConfigValue() {
        return configValue;
    }

    public void setConfigValue(String configValue) {
        this.configValue = configValue;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getIsActive() {
        return isActive;
    }

    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }


    @Override
    public String toString() {
        return "AntiCheatConfig{" +
        ", configId=" + configId +
        ", configName=" + configName +
        ", configValue=" + configValue +
        ", description=" + description +
        ", isActive=" + isActive +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
